package com.yst.gateway.monitor.dao;

import com.yst.gateway.monitor.models.QzDictionary;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

public interface QzDictionaryMapper {
    int deleteByPrimaryKey(String dictionaryId);

    int insert(QzDictionary dictionary);

    QzDictionary selectByPrimaryKey(String dictionaryId);

    List<QzDictionary> selectAll(Map<String, Object> paramMap);

    int updateByPrimaryKey(QzDictionary dictionary);
    
    List<QzDictionary> getByCode(String code);
    
    List<QzDictionary> getByPid (String id);
    
    int insertByPid(QzDictionary dictionary);
    
    int updateById (QzDictionary dictionary);
    
    List<QzDictionary> getByInterId(String id);
    
    int updateStatusByPid(QzDictionary dictionary);
   
    List<QzDictionary> selectByName(String name);
    
    List<QzDictionary> selectByCode(String code);
    
    List<QzDictionary> selectByCodeAndPid(@Param("code") String code,@Param("pid")String pid);
    
    
}